package com.lt.suangua.http.api;

import com.hjq.http.config.IRequestApi;

import java.io.Serializable;
import java.util.List;

public class HomeApi implements IRequestApi {
    @Override
    public String getApi() {
        return "api/suangua/index";
    }

    public final static class Bean implements Serializable{
        public List<Banner> banner;
        public List<Recomm> recomm;
        public ArticleArea articleArea;
    }

    public final static class Banner {
        public String pic;
        public String url;
    }

    public final static class Recomm {
        public String pic;
        public String url;
        public int linktype;
        public int suantype;
    }

    public final static class ArticleArea implements Serializable {
        public List<Cate> cates;
        public List<ArticleList> articlelist;
    }

    public final static class Cate implements Serializable{
        public String name;
        public String cate;
    }

    public final static class ArticleList implements Serializable{
        public String cate;
        public List<Article> list;
    }

    public final static class Article implements Serializable{
        public String title;
        public String author;
        public String readnum;
        public String pic;
        public String url;
    }
}
